package com.xieyingwangluo.yxpart.service.impl;

import com.xieyingwangluo.yxpart.entity.UserCommentModel;
import com.xieyingwangluo.yxpart.mapper.UserCommentMapper;
import com.xieyingwangluo.yxpart.service.UserComService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserComServiceImpl implements UserComService {
    @Autowired
    private UserCommentMapper userCommentMapper;

    @Override
    public int add(UserCommentModel userCommentModel) {
        return userCommentMapper.add(userCommentModel);
    }

    @Override
    public UserCommentModel getById(String noid) {
        return userCommentMapper.getById(noid);
    }

    @Override
    public int upd(UserCommentModel userCommentModel) {
        return userCommentMapper.upd(userCommentModel);
    }

    @Override
    public List<UserCommentModel> selA(UserCommentModel userCommentModel) {
        return userCommentMapper.selA(userCommentModel);
    }

    @Override
    public int del(String noid) {
        return userCommentMapper.del(noid);
    }
}
